InitFocusOwnerIterator
The InitFocusOwnerIterator method initializes this focus-owner iterator object.
void InitFocusOwnerIterator (in ODTypeToken focus, in ODFocusModule focusModule);
focus
- A tokenized string representing the nonexclusive focus type of the owners returned by this iterator, expressed as a 32-bit value.
focusModule
- A reference to a focus module that lists the owners of the specified focus.
DISCUSSION
Thefocus
parameter must be the tokenized form of one of the focus constants (kODClipboardFocus
,kODKeyFocus
,kODMenuFocus
,kODModalFocus
,kODMouseFocus
,kODScrollingFocus
, orkODSelectionFocus
) or the tokenized form of a part-specific focus type. You can call the session object'sTokenize
method to obtain a token corresponding to one of these constants.This method is not called directly to initialize this focus-owner iterator object, but is called by a subclass-specific initialization method. By convention, every subclass of
ODFocusOwnerIterator
should have a separate initialization method (for example, theInitMyFocusOwnerIterator
method) that is called when an instance of that subclass is created. The override method may have additional parameters beyond those of theInitFocusOwnerIterator
method. TheInitMyFocusOwnerIterator
method should call the inheritedInitFocusOwnerIterator
method at the beginning of its implementation.If you subclass
ODFocusOwnerIterator
, your subclass-specific initialization method, rather than itssomInit
method, should handle any initialization code that can potentially fail. For example, your initialization method may attempt to allocate memory for your focus-owner iterator.OVERRIDING
If you subclassODFocusOwnerIterator
, you must not override this method.SEE ALSO
TheODFocusType
type (page 889).
TheODTypeToken
type (page 877).
TheODSession::Tokenize
method (page 622).
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help